import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.bluetooth.d.ts',
  content: "/*\n * Copyright (C) 2021-2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ConnectivityKit\n */\nimport type { AsyncCallback, Callback } from './@ohos.base';\n/**\n * Provides methods to operate or manage Bluetooth.\n *\n * @namespace bluetooth\n * @syscap SystemCapability.Communication.Bluetooth.Core\n * @since 7\n * @deprecated since 9\n * @useinstead ohos.bluetoothManager\n */\ndeclare namespace bluetooth {\n    /**\n     * Obtains the Bluetooth status of a device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @returns { BluetoothState } Returns the Bluetooth status, which can be {@link BluetoothState#STATE_OFF},\n     * {@link BluetoothState#STATE_TURNING_ON}, {@link BluetoothState#STATE_ON}, {@link BluetoothState#STATE_TURNING_OFF},\n     * {@link BluetoothState#STATE_BLE_TURNING_ON}, {@link BluetoothState#STATE_BLE_ON},\n     * or {@link BluetoothState#STATE_BLE_TURNING_OFF}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getState\n     */\n    function getState(): BluetoothState;\n    /**\n     * Get the local device connection state to any profile of any remote device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @returns { ProfileConnectionState } One of {@link ProfileConnectionState#STATE_DISCONNECTED},\n     * {@link ProfileConnectionState#STATE_CONNECTING}, {@link ProfileConnectionState#STATE_CONNECTED},\n     * {@link ProfileConnectionState#STATE_DISCONNECTING}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getBtConnectionState\n     */\n    function getBtConnectionState(): ProfileConnectionState;\n    /**\n     * Starts pairing with a remote Bluetooth device.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @param { string } deviceId - The address of the remote device to pair.\n     * @returns { boolean } Returns {@code true} if the pairing process is started; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.pairDevice\n     */\n    function pairDevice(deviceId: string): boolean;\n    /**\n     * Obtains the name of a peer Bluetooth device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { string } deviceId - The address of the remote device.\n     * @returns { string } Returns the device name in character string format.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getRemoteDeviceName\n     */\n    function getRemoteDeviceName(deviceId: string): string;\n    /**\n     * Obtains the class of a peer Bluetooth device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { string } deviceId - The address of the remote device.\n     * @returns { DeviceClass } The class of the remote device, {@link DeviceClass}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getRemoteDeviceClass\n     */\n    function getRemoteDeviceClass(deviceId: string): DeviceClass;\n    /**\n     * Enables Bluetooth on a device.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @returns { boolean } Returns {@code true} if Bluetooth is being enabled; returns {@code false} if an error occurs.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.enableBluetooth\n     */\n    function enableBluetooth(): boolean;\n    /**\n     * Disables Bluetooth on a device.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @returns { boolean } Returns {@code true} if Bluetooth is being disabled; returns {@code false} if an error occurs.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.disableBluetooth\n     */\n    function disableBluetooth(): boolean;\n    /**\n     * Obtains the Bluetooth local name of a device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @returns { string } Returns the name the device.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getLocalName\n     */\n    function getLocalName(): string;\n    /**\n     * Obtains the list of Bluetooth devices that have been paired with the current device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @returns { Array<string> } Returns a list of paired Bluetooth devices's address.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getPairedDevices\n     */\n    function getPairedDevices(): Array<string>;\n    /**\n     * Obtains the connection state of profile.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { ProfileId } profileId - The profile id.\n     * @returns { ProfileConnectionState } Returns the connection state.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getProfileConnectionState\n     */\n    function getProfileConnState(profileId: ProfileId): ProfileConnectionState;\n    /**\n     * Sets the confirmation of pairing with a certain device.\n     *\n     * @permission ohos.permission.MANAGE_BLUETOOTH\n     * @param { string } device - The address of the remote device.\n     * @param { boolean } accept - Indicates whether to accept the pairing request, {@code true} indicates accept or {@code false} otherwise.\n     * @returns { boolean } Returns {@code true} if the pairing confirmation is set; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.setDevicePairingConfirmation\n     */\n    function setDevicePairingConfirmation(device: string, accept: boolean): boolean;\n    /**\n     * Sets the Bluetooth friendly name of a device.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @param { string } name - Indicates a valid Bluetooth name.\n     * @returns { boolean } Returns {@code true} if the Bluetooth name is set successfully; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.setLocalName\n     */\n    function setLocalName(name: string): boolean;\n    /**\n     * Sets the Bluetooth scan mode for a device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { ScanMode } mode - Indicates the Bluetooth scan mode to set, {@link ScanMode}.\n     * @param { number } duration - Indicates the duration in seconds, in which the host is discoverable.\n     * @returns { boolean } Returns {@code true} if the Bluetooth scan mode is set; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.setBluetoothScanMode\n     */\n    function setBluetoothScanMode(mode: ScanMode, duration: number): boolean;\n    /**\n     * Obtains the Bluetooth scanning mode of a device.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @returns { ScanMode } Returns the Bluetooth scanning mode, {@link ScanMode}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getBluetoothScanMode\n     */\n    function getBluetoothScanMode(): ScanMode;\n    /**\n     * Starts scanning Bluetooth devices.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION\n     * @returns { boolean } Returns {@code true} if the scan is started successfully; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.startBluetoothDiscovery\n     */\n    function startBluetoothDiscovery(): boolean;\n    /**\n     * Stops Bluetooth device scanning.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @returns { boolean } Returns {@code true} if scanning is stopped successfully; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.stopBluetoothDiscovery\n     */\n    function stopBluetoothDiscovery(): boolean;\n    /**\n     * Subscribe the event reported when a remote Bluetooth device is discovered.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { 'bluetoothDeviceFind' } type - Type of the discovering event to listen for.\n     * @param { Callback<Array<string>> } callback - Callback used to listen for the discovering event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.on#event:bluetoothDeviceFind\n     */\n    function on(type: 'bluetoothDeviceFind', callback: Callback<Array<string>>): void;\n    /**\n     * Unsubscribe the event reported when a remote Bluetooth device is discovered.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { 'bluetoothDeviceFind' } type - Type of the discovering event to listen for.\n     * @param { Callback<Array<string>> } callback - Callback used to listen for the discovering event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.off#event:bluetoothDeviceFind\n     */\n    function off(type: 'bluetoothDeviceFind', callback?: Callback<Array<string>>): void;\n    /**\n     * Subscribe the event reported when a remote Bluetooth device is bonded.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { 'bondStateChange' } type - Type of the bond state event to listen for.\n     * @param { Callback<BondStateParam> } callback - Callback used to listen for the bond state event, {@link BondStateParam}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.on#event:bondStateChange\n     */\n    function on(type: 'bondStateChange', callback: Callback<BondStateParam>): void;\n    /**\n     * Unsubscribe the event reported when a remote Bluetooth device is bonded.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { 'bondStateChange' } type - Type of the bond state event to listen for.\n     * @param { Callback<BondStateParam> } callback - Callback used to listen for the bond state event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.off#event:bondStateChange\n     */\n    function off(type: 'bondStateChange', callback?: Callback<BondStateParam>): void;\n    /**\n     * Subscribe the event of a pairing request from a remote Bluetooth device.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @param { 'pinRequired' } type - Type of the pairing request event to listen for.\n     * @param { Callback<PinRequiredParam> } callback - Callback used to listen for the pairing request event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.on#event:pinRequired\n     */\n    function on(type: 'pinRequired', callback: Callback<PinRequiredParam>): void;\n    /**\n     * Unsubscribe the event of a pairing request from a remote Bluetooth device.\n     *\n     * @permission ohos.permission.DISCOVER_BLUETOOTH\n     * @param { 'pinRequired' } type - Type of the pairing request event to listen for.\n     * @param { Callback<PinRequiredParam> } callback - Callback used to listen for the pairing request event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.off#event:pinRequired\n     */\n    function off(type: 'pinRequired', callback?: Callback<PinRequiredParam>): void;\n    /**\n     * Subscribe the event reported when the Bluetooth state changes.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { 'stateChange' } type - Type of the Bluetooth state changes event to listen for.\n     * @param { Callback<BluetoothState> } callback - Callback used to listen for the Bluetooth state event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.on#event:stateChange\n     */\n    function on(type: 'stateChange', callback: Callback<BluetoothState>): void;\n    /**\n     * Unsubscribe the event reported when the Bluetooth state changes.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { 'stateChange' } type - Type of the Bluetooth state changes event to listen for.\n     * @param { Callback<BluetoothState> } callback - Callback used to listen for the Bluetooth state event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.off#event:stateChange\n     */\n    function off(type: 'stateChange', callback?: Callback<BluetoothState>): void;\n    /**\n     * Creates a Bluetooth server listening socket.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { string } name - Indicates the service name.\n     * @param { SppOption } option - Indicates the listen parameters {@link SppOption}.\n     * @param { AsyncCallback<number> } callback - Callback used to return a server socket ID.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.sppListen\n     */\n    function sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void;\n    /**\n     * Waits for a remote device to connect.\n     *\n     * @param { number } serverSocket - Indicates the server socket ID, returned by {@link sppListen}.\n     * @param { AsyncCallback<number> } callback - Callback used to return a client socket ID.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.sppAccept\n     */\n    function sppAccept(serverSocket: number, callback: AsyncCallback<number>): void;\n    /**\n     * Connects to a remote device over the socket.\n     *\n     * @permission ohos.permission.USE_BLUETOOTH\n     * @param { string } device - The address of the remote device to connect.\n     * @param { SppOption } option - Indicates the connect parameters {@link SppOption}.\n     * @param { AsyncCallback<number> } callback - Callback used to return a client socket ID.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.sppConnect\n     */\n    function sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void;\n    /**\n     * Disables an spp server socket and releases related resources.\n     *\n     * @param { number } socket - Indicates the server socket ID, returned by {@link sppListen}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.sppCloseServerSocket\n     */\n    function sppCloseServerSocket(socket: number): void;\n    /**\n     * Disables an spp client socket and releases related resources.\n     *\n     * @param { number } socket - Indicates the client socket ID, returned by {@link sppAccept} or {@link sppConnect}.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.sppCloseClientSocket\n     */\n    function sppCloseClientSocket(socket: number): void;\n    /**\n     * Write data through the socket.\n     *\n     * @param { number } clientSocket - Indicates the client socket ID, returned by {@link sppAccept} or {@link sppConnect}.\n     * @param { ArrayBuffer } data - Indicates the data to write.\n     * @returns { boolean } Returns {@code true} if the data is write successfully; returns {@code false} otherwise.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.sppWrite\n     */\n    function sppWrite(clientSocket: number, data: ArrayBuffer): boolean;\n    /**\n     * Subscribe the event reported when data is read from the socket.\n     *\n     * @param { 'sppRead' } type - Type of the spp read event to listen for.\n     * @param { number } clientSocket - Client socket ID, which is obtained by sppAccept or sppConnect.\n     * @param { Callback<ArrayBuffer> } callback - Callback used to listen for the spp read event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.on#event:sppRead\n     */\n    function on(type: 'sppRead', clientSocket: number, callback: Callback<ArrayBuffer>): void;\n    /**\n     * Unsubscribe the event reported when data is read from the socket.\n     *\n     * @param { 'sppRead' } type - Type of the spp read event to listen for.\n     * @param { number } clientSocket - Client socket ID, which is obtained by sppAccept or sppConnect.\n     * @param { Callback<ArrayBuffer> } callback - Callback used to listen for the spp read event.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.off#event:sppRead\n     */\n    function off(type: 'sppRead', clientSocket: number, callback?: Callback<ArrayBuffer>): void;\n    /**\n     * Obtains the instance of profile.\n     *\n     * @param { ProfileId } profileId - The profile id..\n     * @returns { A2dpSourceProfile | HandsFreeAudioGatewayProfile } Returns instance of profile.\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.getProfileInstance\n     */\n    function getProfile(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile;\n    /**\n     * Base interface of profile.\n     *\n     * @typedef BaseProfile\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BaseProfile\n     */\n    interface BaseProfile {\n        /**\n         * Obtains the connected devices list of profile.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { Array<string> } Returns the address of connected devices list.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BaseProfile#getConnectionDevices\n         */\n        getConnectionDevices(): Array<string>;\n        /**\n         * Obtains the profile state of device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { string } device - The address of bluetooth device.\n         * @returns { ProfileConnectionState } Returns {@link ProfileConnectionState} of device.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BaseProfile#getDeviceState\n         */\n        getDeviceState(device: string): ProfileConnectionState;\n    }\n    /**\n     * Manager a2dp source profile.\n     *\n     * @typedef A2dpSourceProfile\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile\n     */\n    interface A2dpSourceProfile extends BaseProfile {\n        /**\n         * Connect to device with a2dp.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @param { string } device - The address of the remote device to connect.\n         * @returns { boolean } Returns {@code true} if the connect is in process; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile#connect\n         */\n        connect(device: string): boolean;\n        /**\n         * Disconnect to device with a2dp.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @param { string } device - The address of the remote device to disconnect.\n         * @returns { boolean } Returns {@code true} if the disconnect is in process; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile#disconnect\n         */\n        disconnect(device: string): boolean;\n        /**\n         * Subscribe the event reported when the profile connection state changes .\n         *\n         * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .\n         * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile.on#event:connectionStateChange\n         */\n        on(type: 'connectionStateChange', callback: Callback<StateChangeParam>): void;\n        /**\n         * Unsubscribe the event reported when the profile connection state changes .\n         *\n         * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .\n         * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile.off#event:connectionStateChange\n         */\n        off(type: 'connectionStateChange', callback?: Callback<StateChangeParam>): void;\n        /**\n         * Obtains the playing state of device.\n         *\n         * @param { string } device - The address of the remote device.\n         * @returns { PlayingState } Returns {@link PlayingState} of the remote device.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile#getPlayingState\n         */\n        getPlayingState(device: string): PlayingState;\n    }\n    /**\n     * Manager handsfree AG profile.\n     *\n     * @typedef HandsFreeAudioGatewayProfile\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile\n     */\n    interface HandsFreeAudioGatewayProfile extends BaseProfile {\n        /**\n         * Connect to device with hfp.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @param { string } device - The address of the remote device to connect.\n         * @returns { boolean } Returns {@code true} if the connect is in process; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile#connect\n         */\n        connect(device: string): boolean;\n        /**\n         * Disconnect to device with hfp.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @param { string } device - The address of the remote device to disconnect.\n         * @returns { boolean } Returns {@code true} if the disconnect is in process; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile#disconnect\n         */\n        disconnect(device: string): boolean;\n        /**\n         * Subscribe the event reported when the profile connection state changes .\n         *\n         * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .\n         * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile.on#event:connectionStateChange\n         */\n        on(type: 'connectionStateChange', callback: Callback<StateChangeParam>): void;\n        /**\n         * Unsubscribe the event reported when the profile connection state changes .\n         *\n         * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .\n         * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile.off#event:connectionStateChange\n         */\n        off(type: 'connectionStateChange', callback?: Callback<StateChangeParam>): void;\n    }\n    /**\n     * Provides methods to operate or manage Bluetooth.\n     *\n     * @namespace BLE\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BLE\n     */\n    namespace BLE {\n        /**\n         * create a JavaScript Gatt server instance.\n         *\n         * @returns { GattServer } Returns a JavaScript Gatt server instance {@code GattServer}.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.createGattServer\n         */\n        function createGattServer(): GattServer;\n        /**\n         * create a JavaScript Gatt client device instance.\n         *\n         * @param { string } deviceId - The address of the remote device.\n         * @returns { GattClientDevice } Returns a JavaScript Gatt client device instance {@code GattClientDevice}.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.createGattClientDevice\n         */\n        function createGattClientDevice(deviceId: string): GattClientDevice;\n        /**\n         * Obtains the list of devices in the connected status.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { Array<string> } Returns the list of device address.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.getConnectedBLEDevices\n         */\n        function getConnectedBLEDevices(): Array<string>;\n        /**\n         * Starts scanning for specified BLE devices with filters.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH and ohos.permission.LOCATION\n         * @param { Array<ScanFilter> } filters - Indicates the list of filters used to filter out specified devices.\n         * If you do not want to use filter, set this parameter to {@code null}.\n         * @param { ScanOptions } options - Indicates the parameters for scanning and if the user does not assign a value, the default value will be used.\n         * {@link ScanOptions#interval} set to 0, {@link ScanOptions#dutyMode} set to {@link SCAN_MODE_LOW_POWER}\n         * and {@link ScanOptions#matchMode} set to {@link MATCH_MODE_AGGRESSIVE}.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.startBLEScan\n         */\n        function startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void;\n        /**\n         * Stops BLE scanning.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.stopBLEScan\n         */\n        function stopBLEScan(): void;\n        /**\n         * Subscribe BLE scan result.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'BLEDeviceFind' } type - Type of the scan result event to listen for.\n         * @param { Callback<Array<ScanResult>> } callback - Callback used to listen for the scan result event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.on#event:BLEDeviceFind\n         */\n        function on(type: 'BLEDeviceFind', callback: Callback<Array<ScanResult>>): void;\n        /**\n         * Unsubscribe BLE scan result.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'BLEDeviceFind' } type - Type of the scan result event to listen for.\n         * @param { Callback<Array<ScanResult>> } callback - Callback used to listen for the scan result event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.BLE.off#event:BLEDeviceFind\n         */\n        function off(type: 'BLEDeviceFind', callback?: Callback<Array<ScanResult>>): void;\n    }\n    /**\n     * Manages GATT server. Before calling an Gatt server method, you must use {@link createGattServer} to create an GattServer instance.\n     *\n     * @typedef GattServer\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer\n     */\n    interface GattServer {\n        /**\n         * Starts BLE advertising.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @param { AdvertiseSetting } setting - Indicates the settings for BLE advertising.\n         * If you need to use the default value, set this parameter to {@code null}.\n         * @param { AdvertiseData } advData - Indicates the advertising data.\n         * @param { AdvertiseData } advResponse - Indicates the scan response associated with the advertising data.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#startAdvertising\n         */\n        startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;\n        /**\n         * Stops BLE advertising.\n         *\n         * @permission ohos.permission.DISCOVER_BLUETOOTH\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#stopAdvertising\n         */\n        stopAdvertising(): void;\n        /**\n         * Adds a specified service to be hosted.\n         * <p>The added service and its characteristics are provided by the local device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { GattService } service - Indicates the service to add.\n         * @returns { boolean } Returns {@code true} if the service is added; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#addService\n         */\n        addService(service: GattService): boolean;\n        /**\n         * Removes a specified service from the list of GATT services provided by this device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { string } serviceUuid - Indicates the UUID of the service to remove.\n         * @returns { boolean } Returns {@code true} if the service is removed; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#removeService\n         */\n        removeService(serviceUuid: string): boolean;\n        /**\n         * Closes this {@code GattServer} object and unregisters its callbacks.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#close\n         */\n        close(): void;\n        /**\n         * Sends a notification of a change in a specified local characteristic.\n         * <p>This method should be called for every BLE peripheral device that has requested notifications.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { string } deviceId - Indicates the address of the BLE peripheral device to receive the notification.\n         * @param { NotifyCharacteristic } notifyCharacteristic - Indicates the local characteristic that has changed.\n         * @returns { boolean } Returns {@code true} if the notification is sent successfully; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#notifyCharacteristicChanged\n         */\n        notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean;\n        /**\n         * Sends a response to a specified read or write request to a given BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { ServerResponse } serverResponse - Indicates the response parameters {@link ServerResponse}.\n         * @returns { boolean } Returns {@code true} if the response is sent successfully; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer#sendResponse\n         */\n        sendResponse(serverResponse: ServerResponse): boolean;\n        /**\n         * Subscribe characteristic read event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'characteristicRead' } type - Type of the characteristic read event to listen for.\n         * @param { Callback<CharacteristicReadReq> } callback - Callback used to listen for the characteristic read event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.on#event:characteristicRead\n         */\n        on(type: 'characteristicRead', callback: Callback<CharacteristicReadReq>): void;\n        /**\n         * Unsubscribe characteristic read event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'characteristicRead' } type - Type of the characteristic read event to listen for.\n         * @param { Callback<CharacteristicReadReq> } callback - Callback used to listen for the characteristic read event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.off#event:characteristicRead\n         */\n        off(type: 'characteristicRead', callback?: Callback<CharacteristicReadReq>): void;\n        /**\n         * Subscribe characteristic write event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'characteristicWrite' } type - Type of the characteristic write event to listen for.\n         * @param { Callback<CharacteristicWriteReq> } callback - Callback used to listen for the characteristic write event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.on#event:characteristicWrite\n         */\n        on(type: 'characteristicWrite', callback: Callback<CharacteristicWriteReq>): void;\n        /**\n         * Unsubscribe characteristic write event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'characteristicWrite' } type - Type of the characteristic write event to listen for.\n         * @param { Callback<CharacteristicWriteReq> } callback - Callback used to listen for the characteristic write event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.off#event:characteristicWrite\n         */\n        off(type: 'characteristicWrite', callback?: Callback<CharacteristicWriteReq>): void;\n        /**\n         * Subscribe descriptor read event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'descriptorRead' } type - Type of the descriptor read event to listen for.\n         * @param { Callback<DescriptorReadReq> } callback - Callback used to listen for the descriptor read event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.on#event:descriptorRead\n         */\n        on(type: 'descriptorRead', callback: Callback<DescriptorReadReq>): void;\n        /**\n         * Unsubscribe descriptor read event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'descriptorRead' } type - Type of the descriptor read event to listen for.\n         * @param { Callback<DescriptorReadReq> } callback - Callback used to listen for the descriptor read event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.off#event:descriptorRead\n         */\n        off(type: 'descriptorRead', callback?: Callback<DescriptorReadReq>): void;\n        /**\n         * Subscribe descriptor write event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'descriptorWrite' } type - Type of the descriptor write event to listen for.\n         * @param { Callback<DescriptorWriteReq> } callback - Callback used to listen for the descriptor write event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.on#event:descriptorWrite\n         */\n        on(type: 'descriptorWrite', callback: Callback<DescriptorWriteReq>): void;\n        /**\n         * Unsubscribe descriptor write event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'descriptorWrite' } type - Type of the descriptor write event to listen for.\n         * @param { Callback<DescriptorWriteReq> } callback - Callback used to listen for the descriptor write event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.off#event:descriptorWrite\n         */\n        off(type: 'descriptorWrite', callback?: Callback<DescriptorWriteReq>): void;\n        /**\n         * Subscribe server connection state changed event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'connectStateChange' } type - Type of the connection state changed event to listen for.\n         * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.on#event:connectStateChange\n         */\n        on(type: 'connectStateChange', callback: Callback<BLEConnectChangedState>): void;\n        /**\n         * Unsubscribe server connection state changed event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'connectStateChange' } type - Type of the connection state changed event to listen for.\n         * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattServer.off#event:connectStateChange\n         */\n        off(type: 'connectStateChange', callback?: Callback<BLEConnectChangedState>): void;\n    }\n    /**\n     * Manages GATT client. Before calling an Gatt client method, you must use {@link createGattClientDevice} to create an GattClientDevice instance.\n     *\n     * @typedef GattClientDevice\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice\n     */\n    interface GattClientDevice {\n        /**\n         * Connects to a BLE peripheral device.\n         * <p>The 'BLEConnectionStateChange' event is subscribed to return the connection state.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { boolean } Returns {@code true} if the connection process starts; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#connect\n         */\n        connect(): boolean;\n        /**\n         * Disconnects from or stops an ongoing connection to a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { boolean } Returns {@code true} if the disconnection process starts; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#disconnect\n         */\n        disconnect(): boolean;\n        /**\n         * Disables a BLE peripheral device.\n         * <p> This method unregisters the device and clears the registered callbacks and handles.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { boolean } Returns {@code true} if the the device is disabled; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#close\n         */\n        close(): boolean;\n        /**\n         * Obtains the name of BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { AsyncCallback<string> } callback - Callback used to obtain the device name.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#getDeviceName\n         */\n        getDeviceName(callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the name of BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { Promise<string> } Returns a string representation of the name if obtained;\n         * returns {@code null} if the name fails to be obtained or the name does not exist.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#getDeviceName\n         */\n        getDeviceName(): Promise<string>;\n        /**\n         * Starts discovering services.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { AsyncCallback<Array<GattService>> } callback - Callback used to catch the services.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#getServices\n         */\n        getServices(callback: AsyncCallback<Array<GattService>>): void;\n        /**\n         * Starts discovering services.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { Promise<Array<GattService>> } Returns the list of services {@link GattService} of the BLE peripheral device.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#getServices\n         */\n        getServices(): Promise<Array<GattService>>;\n        /**\n         * Reads the characteristic of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLECharacteristic } characteristic - Indicates the characteristic to read.\n         * @param { AsyncCallback<BLECharacteristic> } callback - Callback invoked to return the characteristic value read.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#readCharacteristicValue\n         */\n        readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void;\n        /**\n         * Reads the characteristic of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLECharacteristic } characteristic - Indicates the characteristic to read.\n         * @returns { Promise<BLECharacteristic> } - Promise used to return the characteristic value read.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#readCharacteristicValue\n         */\n        readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic>;\n        /**\n         * Reads the descriptor of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLEDescriptor } descriptor - Indicates the descriptor to read.\n         * @param { AsyncCallback<BLEDescriptor> } callback - Callback invoked to return the descriptor read.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#readDescriptorValue\n         */\n        readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void;\n        /**\n         * Reads the descriptor of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLEDescriptor } descriptor - Indicates the descriptor to read.\n         * @returns { Promise<BLEDescriptor> } - Promise used to return the descriptor read.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#readDescriptorValue\n         */\n        readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor>;\n        /**\n         * Writes the characteristic of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLECharacteristic } characteristic - Indicates the characteristic to write.\n         * @returns { boolean } Returns {@code true} if the characteristic is written successfully; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#writeCharacteristicValue\n         */\n        writeCharacteristicValue(characteristic: BLECharacteristic): boolean;\n        /**\n         * Writes the descriptor of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLEDescriptor } descriptor - Indicates the descriptor to write.\n         * @returns { boolean } Returns {@code true} if the descriptor is written successfully; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#writeDescriptorValue\n         */\n        writeDescriptorValue(descriptor: BLEDescriptor): boolean;\n        /**\n         * Get the RSSI value of this BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { AsyncCallback<number> } callback - Callback invoked to return the RSSI, in dBm.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#getRssiValue\n         */\n        getRssiValue(callback: AsyncCallback<number>): void;\n        /**\n         * Get the RSSI value of this BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @returns { Promise<number> } Returns the RSSI value.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#getRssiValue\n         */\n        getRssiValue(): Promise<number>;\n        /**\n         * Set the mtu size of a BLE peripheral device.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { number } mtu - The maximum transmission unit.\n         * @returns { boolean } Returns {@code true} if the set mtu is successfully; returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#setBLEMtuSize\n         */\n        setBLEMtuSize(mtu: number): boolean;\n        /**\n         * Enables or disables notification of a characteristic when value changed.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { BLECharacteristic } characteristic - BLE characteristic to listen for.\n         * @param { boolean } enable - Specifies whether to enable notification of the characteristic. The value {@code true} indicates\n         * that notification is enabled, and the value {@code false} indicates that notification is disabled.\n         * @returns { boolean } Returns {@code true} if notification of the characteristic is enabled or disabled;\n         * returns {@code false} otherwise.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice#setNotifyCharacteristicChanged\n         */\n        setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean;\n        /**\n         * Subscribe characteristic value changed event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'BLECharacteristicChange' } type - Type of the characteristic value changed event to listen for.\n         * @param { Callback<BLECharacteristic> } callback - Callback used to listen for the characteristic value changed event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice.on#event:BLECharacteristicChange\n         */\n        on(type: 'BLECharacteristicChange', callback: Callback<BLECharacteristic>): void;\n        /**\n         * Unsubscribe characteristic value changed event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'BLECharacteristicChange' } type - Type of the characteristic value changed event to listen for.\n         * @param { Callback<BLECharacteristic> } callback - Callback used to listen for the characteristic value changed event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice.off#event:BLECharacteristicChange\n         */\n        off(type: 'BLECharacteristicChange', callback?: Callback<BLECharacteristic>): void;\n        /**\n         * Subscribe client connection state changed event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'BLEConnectionStateChange' } type - Type of the connection state changed event to listen for.\n         * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice.on#event:BLEConnectionStateChange\n         */\n        on(type: 'BLEConnectionStateChange', callback: Callback<BLEConnectChangedState>): void;\n        /**\n         * Unsubscribe client connection state changed event.\n         *\n         * @permission ohos.permission.USE_BLUETOOTH\n         * @param { 'BLEConnectionStateChange' } type - Type of the connection state changed event to listen for.\n         * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.bluetoothManager/bluetoothManager.GattClientDevice.off#event:BLEConnectionStateChange\n         */\n        off(type: 'BLEConnectionStateChange', callback?: Callback<BLEConnectChangedState>): void;\n    }\n    /**\n     * Describes the Gatt service.\n     *\n     * @typedef GattService\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.GattService\n     */\n    interface GattService {\n        /**\n         * The UUID of a GattService instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n        /**\n         * Indicates whether the GattService instance is primary or secondary.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        isPrimary: boolean;\n        /**\n         * The {@link BLECharacteristic} list belongs to this GattService instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristics: Array<BLECharacteristic>;\n        /**\n         * The list of GATT services contained in the service\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        includeServices?: Array<GattService>;\n    }\n    /**\n     * Describes the Gatt characteristic.\n     *\n     * @typedef BLECharacteristic\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BLECharacteristic\n     */\n    interface BLECharacteristic {\n        /**\n         * The UUID of the {@link GattService} instance to which the characteristic belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n        /**\n         * The UUID of a BLECharacteristic instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The value of a BLECharacteristic instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicValue: ArrayBuffer;\n        /**\n         * The list of {@link BLEDescriptor} contained in the characteristic\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        descriptors: Array<BLEDescriptor>;\n    }\n    /**\n     * Describes the Gatt descriptor.\n     *\n     * @typedef BLEDescriptor\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BLEDescriptor\n     */\n    interface BLEDescriptor {\n        /**\n         * The UUID of the {@link GattService} instance to which the descriptor belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n        /**\n         * The UUID of the {@link BLECharacteristic} instance to which the descriptor belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The UUID of the BLEDescriptor instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        descriptorUuid: string;\n        /**\n         * The value of the BLEDescriptor instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        descriptorValue: ArrayBuffer;\n    }\n    /**\n     * Describes the value of the indication or notification sent by the Gatt server.\n     *\n     * @typedef NotifyCharacteristic\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.NotifyCharacteristic\n     */\n    interface NotifyCharacteristic {\n        /**\n         * The UUID of the {@link GattService} instance to which the characteristic belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n        /**\n         * The UUID of a NotifyCharacteristic instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The value of a NotifyCharacteristic instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicValue: ArrayBuffer;\n        /**\n         * Specifies whether to request confirmation from the BLE peripheral device (indication) or\n         * send a notification. Value {@code true} indicates the former and {@code false} indicates the latter.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        confirm: boolean;\n    }\n    /**\n     * Describes the parameters of the Gatt client's characteristic read request.\n     *\n     * @typedef CharacteristicReadReq\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.CharacteristicReadRequest\n     */\n    interface CharacteristicReadReq {\n        /**\n         * Indicates the address of the client that initiates the read request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * The Id of the read request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        transId: number;\n        /**\n         * Indicates the byte offset of the start position for reading characteristic value\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        offset: number;\n        /**\n         * The UUID of a CharacteristicReadReq instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The UUID of the service to which the characteristic belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n    }\n    /**\n     * Describes the parameters of the of the Gatt client's characteristic write request.\n     *\n     * @typedef CharacteristicWriteReq\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.CharacteristicWriteRequest\n     */\n    interface CharacteristicWriteReq {\n        /**\n         * Indicates the address of the client that initiates the write request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * The Id of the write request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        transId: number;\n        /**\n         * Indicates the byte offset of the start position for writing characteristic value\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        offset: number;\n        /**\n         * Whether this request should be pending for later operation\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        isPrep: boolean;\n        /**\n         * Whether the remote client need a response\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        needRsp: boolean;\n        /**\n         * Indicates the value to be written\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        value: ArrayBuffer;\n        /**\n         * The UUID of a CharacteristicWriteReq instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The UUID of the service to which the characteristic belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n    }\n    /**\n     * Describes the parameters of the Gatt client's descriptor read request.\n     *\n     * @typedef DescriptorReadReq\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.DescriptorReadRequest\n     */\n    interface DescriptorReadReq {\n        /**\n         * Indicates the address of the client that initiates the read request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * The Id of the read request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        transId: number;\n        /**\n         * Indicates the byte offset of the start position for reading characteristic value\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        offset: number;\n        /**\n         * The UUID of a DescriptorReadReq instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        descriptorUuid: string;\n        /**\n         * The UUID of the characteristic to which the descriptor belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The UUID of the service to which the descriptor belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n    }\n    /**\n     * Describes the parameters of the Gatt client's characteristic write request.\n     *\n     * @typedef DescriptorWriteReq\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.DescriptorWriteRequest\n     */\n    interface DescriptorWriteReq {\n        /**\n         * Indicates the address of the client that initiates the write request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * The Id of the write request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        transId: number;\n        /**\n         * Indicates the byte offset of the start position for writing characteristic value\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        offset: number;\n        /**\n         * Whether this request should be pending for later operation\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        isPrep: boolean;\n        /**\n         * Whether the remote client need a response\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        needRsp: boolean;\n        /**\n         * Indicates the value to be written\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        value: ArrayBuffer;\n        /**\n         * The UUID of a DescriptorWriteReq instance\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        descriptorUuid: string;\n        /**\n         * The UUID of the characteristic to which the descriptor belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        characteristicUuid: string;\n        /**\n         * The UUID of the service to which the descriptor belongs\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n    }\n    /**\n     * Describes the parameters of a response send by the server to a specified read or write request.\n     *\n     * @typedef ServerResponse\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ServerResponse\n     */\n    interface ServerResponse {\n        /**\n         * Indicates the address of the client to which to send the response\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * The Id of the write request\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        transId: number;\n        /**\n         * Indicates the status of the read or write request, set this parameter to '0' in normal cases\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        status: number;\n        /**\n         * Indicates the byte offset of the start position for reading or writing operation\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        offset: number;\n        /**\n         * Indicates the value to be sent\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        value: ArrayBuffer;\n    }\n    /**\n     * Describes the Gatt profile connection state.\n     *\n     * @typedef BLEConnectChangedState\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BLEConnectChangedState\n     */\n    interface BLEConnectChangedState {\n        /**\n         * Indicates the peer device address\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * Connection state of the Gatt profile\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        state: ProfileConnectionState;\n    }\n    /**\n     * Describes the contents of the scan results.\n     *\n     * @typedef ScanResult\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ScanResult\n     */\n    interface ScanResult {\n        /**\n         * Address of the scanned device\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * RSSI of the remote device\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        rssi: number;\n        /**\n         * The raw data of broadcast packet\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        data: ArrayBuffer;\n    }\n    /**\n     * Describes the settings for BLE advertising.\n     *\n     * @typedef AdvertiseSetting\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.AdvertiseSetting\n     */\n    interface AdvertiseSetting {\n        /**\n         * Minimum slot value for the advertising interval, which is {@code 32} (20 ms)\n         * Maximum slot value for the advertising interval, which is {@code 16777215} (10485.759375s)\n         * Default slot value for the advertising interval, which is {@code 1600} (1s)\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        interval?: number;\n        /**\n         * Minimum transmission power level for advertising, which is {@code -127}\n         * Maximum transmission power level for advertising, which is {@code 1}\n         * Default transmission power level for advertising, which is {@code -7}\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        txPower?: number;\n        /**\n         * Indicates whether the BLE is connectable, default is {@code true}\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        connectable?: boolean;\n    }\n    /**\n     * Describes the advertising data.\n     *\n     * @typedef AdvertiseData\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.AdvertiseData\n     */\n    interface AdvertiseData {\n        /**\n         * The specified service UUID list to this advertisement\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuids: Array<string>;\n        /**\n         * The specified manufacturer data list to this advertisement\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        manufactureData: Array<ManufactureData>;\n        /**\n         * The specified service data list to this advertisement\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceData: Array<ServiceData>;\n    }\n    /**\n     * Describes the manufacturer data.\n     *\n     * @typedef ManufactureData\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ManufactureData\n     */\n    interface ManufactureData {\n        /**\n         * Indicates the manufacturer ID assigned by Bluetooth SIG\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        manufactureId: number;\n        /**\n         * Indicates the manufacturer data to add\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        manufactureValue: ArrayBuffer;\n    }\n    /**\n     * Describes the service data.\n     *\n     * @typedef ServiceData\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ServiceData\n     */\n    interface ServiceData {\n        /**\n         * Indicates the UUID of the service data to add\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid: string;\n        /**\n         * Indicates the service data to add\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceValue: ArrayBuffer;\n    }\n    /**\n     * Describes the criteria for filtering scanning results can be set.\n     *\n     * @typedef ScanFilter\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ScanFilter\n     */\n    interface ScanFilter {\n        /**\n         * The address of a BLE peripheral device\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        deviceId?: string;\n        /**\n         * The name of a BLE peripheral device\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        name?: string;\n        /**\n         * The service UUID of a BLE peripheral device\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        serviceUuid?: string;\n    }\n    /**\n     * Describes the parameters for scan.\n     *\n     * @typedef ScanOptions\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ScanOptions\n     */\n    interface ScanOptions {\n        /**\n         * Time of delay for reporting the scan result\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        interval?: number;\n        /**\n         * Bluetooth LE scan mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        dutyMode?: ScanDuty;\n        /**\n         * Match mode for Bluetooth LE scan filters hardware match\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        matchMode?: MatchMode;\n    }\n    /**\n     * Describes the spp parameters.\n     *\n     * @typedef SppOption\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.SppOption\n     */\n    interface SppOption {\n        /**\n         * Indicates the UUID in the SDP record.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        uuid: string;\n        /**\n         * Indicates secure channel or not\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        secure: boolean;\n        /**\n         * Spp link type {@link SppType}\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        type: SppType;\n    }\n    /**\n     * Describes the bond key param.\n     *\n     * @typedef PinRequiredParam\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.PinRequiredParam\n     */\n    interface PinRequiredParam {\n        /**\n         * ID of the device to pair.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * Key for the device pairing.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        pinCode: string;\n    }\n    /**\n     * Describes the class of a bluetooth device.\n     *\n     * @typedef DeviceClass\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.DeviceClass\n     */\n    interface DeviceClass {\n        /**\n         * Major classes of Bluetooth devices.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        majorClass: MajorClass;\n        /**\n         * Major and minor classes of Bluetooth devices.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        majorMinorClass: MajorMinorClass;\n        /**\n         * Class of the device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        classOfDevice: number;\n    }\n    /**\n     * Describes the class of a bluetooth device.\n     *\n     * @typedef BondStateParam\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BondStateParam\n     */\n    interface BondStateParam {\n        /**\n         * Address of a Bluetooth device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * Profile connection state of the device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        state: BondState;\n    }\n    /**\n     * The enum of scan duty.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ScanDuty\n     */\n    enum ScanDuty {\n        /**\n         * low power mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        SCAN_MODE_LOW_POWER = 0,\n        /**\n         * balanced power mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        SCAN_MODE_BALANCED = 1,\n        /**\n         * Scan using highest duty cycle\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        SCAN_MODE_LOW_LATENCY = 2\n    }\n    /**\n     * The enum of BLE match mode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.MatchMode\n     */\n    enum MatchMode {\n        /**\n         * aggressive mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        MATCH_MODE_AGGRESSIVE = 1,\n        /**\n         * sticky mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        MATCH_MODE_STICKY = 2\n    }\n    /**\n     * The enum of profile connection state.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ProfileConnectionState\n     */\n    enum ProfileConnectionState {\n        /**\n         * the current profile is disconnected\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_DISCONNECTED = 0,\n        /**\n         * the current profile is being connected\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_CONNECTING = 1,\n        /**\n         * the current profile is connected\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_CONNECTED = 2,\n        /**\n         * the current profile is being disconnected\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_DISCONNECTING = 3\n    }\n    /**\n     * The enum of bluetooth state.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BluetoothState\n     */\n    enum BluetoothState {\n        /**\n         * Indicates the local Bluetooth is off\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_OFF = 0,\n        /**\n         * Indicates the local Bluetooth is turning on\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_TURNING_ON = 1,\n        /**\n         * Indicates the local Bluetooth is on, and ready for use\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_ON = 2,\n        /**\n         * Indicates the local Bluetooth is turning off\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_TURNING_OFF = 3,\n        /**\n         * Indicates the local Bluetooth is turning LE mode on\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_BLE_TURNING_ON = 4,\n        /**\n         * Indicates the local Bluetooth is in LE only mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_BLE_ON = 5,\n        /**\n         * Indicates the local Bluetooth is turning off LE only mode\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        STATE_BLE_TURNING_OFF = 6\n    }\n    /**\n     * The enum of SPP type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.SppType\n     */\n    enum SppType {\n        /**\n         * RFCOMM\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SPP_RFCOMM\n    }\n    /**\n     * The enum of BR scan mode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ScanMode\n     */\n    enum ScanMode {\n        /**\n         * Indicates the scan mode is none\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SCAN_MODE_NONE = 0,\n        /**\n         * Indicates the scan mode is connectable\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SCAN_MODE_CONNECTABLE = 1,\n        /**\n         * Indicates the scan mode is general discoverable\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SCAN_MODE_GENERAL_DISCOVERABLE = 2,\n        /**\n         * Indicates the scan mode is limited discoverable\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SCAN_MODE_LIMITED_DISCOVERABLE = 3,\n        /**\n         * Indicates the scan mode is connectable and general discoverable\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE = 4,\n        /**\n         * Indicates the scan mode is connectable and limited discoverable\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE = 5\n    }\n    /**\n     * The enum of bond state.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.BondState\n     */\n    enum BondState {\n        /**\n         * Indicate the bond state is invalid\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        BOND_STATE_INVALID = 0,\n        /**\n         * Indicate the bond state is bonding\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        BOND_STATE_BONDING = 1,\n        /**\n         * Indicate the bond state is bonded\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        BOND_STATE_BONDED = 2\n    }\n    /**\n     * The enum of major class of a bluetooth device.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.MajorClass\n     */\n    enum MajorClass {\n        /**\n         * Miscellaneous device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_MISC = 0x0000,\n        /**\n         * Computer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_COMPUTER = 0x0100,\n        /**\n         * Mobile phone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_PHONE = 0x0200,\n        /**\n         * Network device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_NETWORKING = 0x0300,\n        /**\n         * Audio or video device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_AUDIO_VIDEO = 0x0400,\n        /**\n         * Peripheral device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_PERIPHERAL = 0x0500,\n        /**\n         * Imaging device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_IMAGING = 0x0600,\n        /**\n         * Wearable device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_WEARABLE = 0x0700,\n        /**\n         * Toy.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_TOY = 0x0800,\n        /**\n         * Health device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_HEALTH = 0x0900,\n        /**\n         * Unclassified device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        MAJOR_UNCATEGORIZED = 0x1F00\n    }\n    /**\n     * The enum of major minor class of a bluetooth device.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.MajorMinorClass\n     */\n    enum MajorMinorClass {\n        /**\n         * The Minor Device Class field\n         * Computer Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_UNCATEGORIZED = 0x0100,\n        /**\n         * Desktop computer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_DESKTOP = 0x0104,\n        /**\n         * Server.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_SERVER = 0x0108,\n        /**\n         * Laptop.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_LAPTOP = 0x010C,\n        /**\n         * Hand-held computer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_HANDHELD_PC_PDA = 0x0110,\n        /**\n         * Palmtop computer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_PALM_SIZE_PC_PDA = 0x0114,\n        /**\n         * Wearable computer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_WEARABLE = 0x0118,\n        /**\n         * Tablet.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        COMPUTER_TABLET = 0x011C,\n        /**\n         * Phone Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PHONE_UNCATEGORIZED = 0x0200,\n        /**\n         * Portable phone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PHONE_CELLULAR = 0x0204,\n        /**\n         * Cordless phone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PHONE_CORDLESS = 0x0208,\n        /**\n         * Smartphone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PHONE_SMART = 0x020C,\n        /**\n         * Modem or gateway phone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PHONE_MODEM_OR_GATEWAY = 0x0210,\n        /**\n         * ISDN phone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PHONE_ISDN = 0x0214,\n        /**\n         * LAN/Network Access Point Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_FULLY_AVAILABLE = 0x0300,\n        /**\n         * Device used on network 1 to 17.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_1_TO_17_UTILIZED = 0x0320,\n        /**\n         * Device used on network 17 to 33.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_17_TO_33_UTILIZED = 0x0340,\n        /**\n         * Device used on network 33 to 50.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_33_TO_50_UTILIZED = 0x0360,\n        /**\n         * Device used on network 60 to 67.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_60_TO_67_UTILIZED = 0x0380,\n        /**\n         * Device used on network 67 to 83.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_67_TO_83_UTILIZED = 0x03A0,\n        /**\n         * Device used on network 83 to 99.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_83_TO_99_UTILIZED = 0x03C0,\n        /**\n         * Device without network service.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        NETWORK_NO_SERVICE = 0x03E0,\n        /**\n         * Unclassified audio or video device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_UNCATEGORIZED = 0x0400,\n        /**\n         * Wearable audio or video headset.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404,\n        /**\n         * Hands-free audio or video device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_HANDSFREE = 0x0408,\n        /**\n         * Audio or video microphone.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_MICROPHONE = 0x0410,\n        /**\n         * Audio or video loudspeaker.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_LOUDSPEAKER = 0x0414,\n        /**\n         * Audio or video headphones.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_HEADPHONES = 0x0418,\n        /**\n         * Portable audio or video device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C,\n        /**\n         * In-vehicle audio or video device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_CAR_AUDIO = 0x0420,\n        /**\n         * Audio or video STB device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_SET_TOP_BOX = 0x0424,\n        /**\n         * High-fidelity speaker device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_HIFI_AUDIO = 0x0428,\n        /**\n         * Video cassette recording (VCR) device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_VCR = 0x042C,\n        /**\n         * Camera.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_VIDEO_CAMERA = 0x0430,\n        /**\n         * Camcorder.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_CAMCORDER = 0x0434,\n        /**\n         * Audio or video monitor.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_VIDEO_MONITOR = 0x0438,\n        /**\n         * Video display or loudspeaker.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C,\n        /**\n         * Video conferencing device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440,\n        /**\n         * Audio or video gaming toy.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448,\n        /**\n         * Peripheral Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500,\n        /**\n         * Keyboard device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_KEYBOARD = 0x0540,\n        /**\n         * Pointing peripheral device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_POINTING_DEVICE = 0x0580,\n        /**\n         * Keyboard pointing device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_KEYBOARD_POINTING = 0x05C0,\n        /**\n         * Unclassified peripheral device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_UNCATEGORIZED = 0x0500,\n        /**\n         * Peripheral joystick.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_JOYSTICK = 0x0504,\n        /**\n         * Peripheral game pad.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_GAMEPAD = 0x0508,\n        /**\n         * Peripheral remote control device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_REMOTE_CONTROL = 0x05C0,\n        /**\n         * Peripheral sensing device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_SENSING_DEVICE = 0x0510,\n        /**\n         * Peripheral digitizer tablet.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_DIGITIZER_TABLET = 0x0514,\n        /**\n         * Peripheral card reader.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_CARD_READER = 0x0518,\n        /**\n         * Peripheral digital pen.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_DIGITAL_PEN = 0x051C,\n        /**\n         * Peripheral RFID scanner.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_SCANNER_RFID = 0x0520,\n        /**\n         * Gesture input device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PERIPHERAL_GESTURAL_INPUT = 0x0522,\n        /**\n         * Imaging Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        IMAGING_UNCATEGORIZED = 0x0600,\n        /**\n         * Imaging display device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        IMAGING_DISPLAY = 0x0610,\n        /**\n         * Imaging camera device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        IMAGING_CAMERA = 0x0620,\n        /**\n         * Imaging scanner.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        IMAGING_SCANNER = 0x0640,\n        /**\n         * Imaging printer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        IMAGING_PRINTER = 0x0680,\n        /**\n         * Wearable Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        WEARABLE_UNCATEGORIZED = 0x0700,\n        /**\n         * Smart watch.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        WEARABLE_WRIST_WATCH = 0x0704,\n        /**\n         * Wearable pager.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        WEARABLE_PAGER = 0x0708,\n        /**\n         * Smart jacket.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        WEARABLE_JACKET = 0x070C,\n        /**\n         * Wearable helmet.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        WEARABLE_HELMET = 0x0710,\n        /**\n         * Wearable glasses.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        WEARABLE_GLASSES = 0x0714,\n        /**\n         * Minor Device Class field - Toy Major Class\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        TOY_UNCATEGORIZED = 0x0800,\n        /**\n         * Toy robot.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        TOY_ROBOT = 0x0804,\n        /**\n         * Toy vehicle.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        TOY_VEHICLE = 0x0808,\n        /**\n         * Humanoid toy doll.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        TOY_DOLL_ACTION_FIGURE = 0x080C,\n        /**\n         * Toy controller.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        TOY_CONTROLLER = 0x0810,\n        /**\n         * Toy gaming device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        TOY_GAME = 0x0814,\n        /**\n         * Minor Device Class field - Health\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_UNCATEGORIZED = 0x0900,\n        /**\n         * Blood pressure device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_BLOOD_PRESSURE = 0x0904,\n        /**\n         * Thermometer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_THERMOMETER = 0x0908,\n        /**\n         * Body scale.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_WEIGHING = 0x090C,\n        /**\n         * Blood glucose monitor.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_GLUCOSE = 0x0910,\n        /**\n         * Pulse oximeter.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_PULSE_OXIMETER = 0x0914,\n        /**\n         * Heart rate monitor.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_PULSE_RATE = 0x0918,\n        /**\n         * Health data display.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_DATA_DISPLAY = 0x091C,\n        /**\n         * Step counter.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_STEP_COUNTER = 0x0920,\n        /**\n         * Body composition analyzer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924,\n        /**\n         * Hygrometer.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_PEAK_FLOW_MOITOR = 0x0928,\n        /**\n         * Medication monitor.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_MEDICATION_MONITOR = 0x092C,\n        /**\n         * Prosthetic knee.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_KNEE_PROSTHESIS = 0x0930,\n        /**\n         * Prosthetic ankle.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_ANKLE_PROSTHESIS = 0x0934,\n        /**\n         * Generic health management device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_GENERIC_HEALTH_MANAGER = 0x0938,\n        /**\n         * Personal mobility device.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C\n    }\n    /**\n     * Profile state change parameters.\n     *\n     * @typedef StateChangeParam\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.StateChangeParam\n     */\n    interface StateChangeParam {\n        /**\n         * The address of device\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        deviceId: string;\n        /**\n         * Profile state value\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        state: ProfileConnectionState;\n    }\n    /**\n     * The enum of a2dp playing state.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.PlayingState\n     */\n    enum PlayingState {\n        /**\n         * Not playing.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        STATE_NOT_PLAYING,\n        /**\n         * Playing.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        STATE_PLAYING\n    }\n    /**\n     * The enum of profile id.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.Bluetooth.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.bluetoothManager/bluetoothManager.ProfileId\n     */\n    enum ProfileId {\n        /**\n         * A2DP profile.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PROFILE_A2DP_SOURCE = 1,\n        /**\n         * HFP profile.\n         *\n         * @syscap SystemCapability.Communication.Bluetooth.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4\n    }\n}\nexport default bluetooth;\n",
}
export default FILE;